import request from "@/utils/request";

/**
 * 上传文件
 */
export function upload(data) {
  return request({
    url: "/api/file",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
